package lp.chess.ui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;

public class RectangleDrawable extends FormDrawable {
	public RectangleDrawable(Color color, Point pos, Dimension dim) {
		super(color, pos, dim);
	}

	public void draw(Graphics g) {
		Color c = g.getColor();
		g.setColor(m_color);
		g.fillRect(m_rect.x,m_rect.y,m_rect.height,m_rect.width);
		g.setColor(c);
	}

}